﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Sanpham.aspx.cs" Inherits="EHTWebsiteProject.Administrator.Sanpham" %>
<%@ Register src="~/Controls/PaggingControl.ascx" tagname="PaggingControl" tagprefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link type="text/css" href="../Templates/EHTAdmin.css" rel="Stylesheet" />
   
</head>
<body >
    <form id="form1" runat="server">
    <div style="width:600px; float:left">
        <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
             <script type="text/javascript">
                 function GetRadWindow() {
                     var oWindow = null;
                     if (window.radWindow) oWindow = window.radWindow;
                     else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;

                     return oWindow;
                 }

                 function Close() {                     
                     GetRadWindow().close();                                     
                 }
       
    </script>    
        </telerik:RadCodeBlock>
        <div style="width:600px; float:left">
        <div style="padding:10px;width:590px">                   
                    <div style="float:left; width:585px;padding-right:15px">
                        <table>
                            <tr>
                            <td style="width:360px;text-align:right;padding-right:10px">
                                 <asp:DropDownList ID="ddlDanhmucSanPham" runat="server" CssClass="InputText" 
                        Width="200px" AutoPostBack="true" 
                        onselectedindexchanged="ddlDanhmucSanPham_SelectedIndexChanged">
                        </asp:DropDownList>
                            </td>
                                <td><asp:TextBox ID="txtsearch" runat="server" CssClass="InputText" Width="140px"></asp:TextBox> </td>
                                <td>
                                     <asp:ImageButton ID="ImagSearch" runat="server" 
                                    ImageUrl="~/images/EHTgiaodien/icon-16-orphan.png" Width="20px" Height="20px" 
                                    onclick="ImagSearch_Click"/>
                                </td>
                                <td style="width:65px">
                                    <asp:Button ID="btnselect" runat="server" Text="Chọn" 
                                        onclick="btnselect_Click" />
                                </td>
                            </tr>
                        </table>                                               
                    </div>                      
                                
        </div>
        <div style="padding:5px 0px 0px 10px;float:left;width:590px; color:Red">
            <asp:Literal ID="ltrErorr" runat="server"></asp:Literal>
        </div>
        <div style="padding:5px 0px 0px 10px;float:left;width:590px">
        <asp:Panel ID="pnSanPham" runat="server">
             <asp:Repeater ID="rpProducts" runat="server" >                               
        <HeaderTemplate>
            <table id="table" border="0" cellpadding="0" cellspacing="0" >
                 <thead>
                    <tr>
                                     <th>
                                        
                                    </th>                       
                                                                     
                                    <th>
                                        <asp:Label ID="lbTenSanPhamVN" runat="server" Text=" Tên sản phẩm"></asp:Label>                            
                                    </th>                                                                                                         
                                    <th>
                                        <asp:Label ID="lbPublish" runat="server" Text=" Trạng thái "></asp:Label>                             
                                    </th>                                                                      
                    </tr>
                 </thead>
                 <tbody>            
        </HeaderTemplate>
        <ItemTemplate>
                 <tr>
                        <td style="width:50px">
                            <asp:CheckBox ID="ckMenu" runat="server"  />                                                     
                            <asp:Label ID="lbDelID" runat="server" Visible="false" Text='<%#Eval("SanPhamID")%>'></asp:Label>
                        </td>                       
                        
                        <td style="width:450px">                                                            
                             <%#Eval("TenSanPhamVN")%>                                    
                        </td>     
                        <td style="width:90px">
                                     <asp:Label ID="lbStatus" runat="server" Text='<%#Eval("Publish")%>' Visible="false"></asp:Label>
                                     <asp:Image ID="ImagStatus" ImageUrl="~/images/tick.png" runat="server" />
                                </td>                                                                                                                                                                           
                    </tr>
        </ItemTemplate>
        <FooterTemplate>
                </tbody>
             </table>
        </FooterTemplate>
    </asp:Repeater>
        </asp:Panel>
    </div>  
        <div style="padding:5px 0px 0px 10px;float:left;width:590px">
            <asp:Panel ID="pnSanPhamOther" runat="server">
         <asp:Repeater ID="rpProductsOther" runat="server" >                 
        <HeaderTemplate>
            <table id="table" border="0" cellpadding="0" cellspacing="0" >
                 <thead>
                    <tr>
                                     <th >
                                        
                                     </th>                       
                                   
                                   
                                    <th >
                                        <asp:Label ID="lbTenSanPhamVN" runat="server" Text=" Product Name"></asp:Label>                            
                                    </th>                                                        
                                    <th >
                                        <asp:Label ID="lbPublish" runat="server" Text=" Status "></asp:Label>                             
                                    </th>                                                                                                                                                                                           
                    </tr>
                 </thead>
                 <tbody>            
        </HeaderTemplate>
        <ItemTemplate>
                 <tr>
                        <td style="width:50px">
                            <asp:CheckBox ID="ckMenu" runat="server"  />      
                            <asp:Label ID="lbDelID" runat="server" Visible="false" Text='<%#Eval("SanPhamID")%>'></asp:Label>
                        </td>                      
                      
                                <td style="width:450px">
                                    
                                        <%#Eval("TenSanPhamVN")%>
                                   
                                </td>                                                                                                                                                      
                                <td style="width:90px">
                                     <asp:Label ID="lbStatus" runat="server" Text='<%#Eval("Publish")%>' Visible="false"></asp:Label>
                                     <asp:Image ID="ImagStatus" ImageUrl="~/images/tick.png" runat="server" />
                                </td>                                                                                                                                                                                                                                                       
                    </tr>
        </ItemTemplate>
        <FooterTemplate>
                </tbody>
             </table>
        </FooterTemplate>
    </asp:Repeater>
    </asp:Panel>
        </div>    
            <span style="color:#009aff;padding-left:20px; font-size:14px; font-family:Arial">
                <asp:Literal ID="ltrData" runat="server"></asp:Literal>
            </span>
    </div>
        <div align="center" style="padding:10px 0px 10px 0px">        
        <table>
            <tr>               
                <td>
                    <uc1:PaggingControl ID="PaggingControl1" PageSize="30" runat="server" />
                </td>
            </tr>
        </table>
        
    </div>  
    </div>

    </form>
</body>
</html>
